package com.example.spinning.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;

@Table(name = "material_quality")
public class MaterialQuality {
   //原料质量：批号、品名、日期、产地、颜色
    @Id
    private Long id;//每批纱线拥有的编号
    @Column
    private String batch_no;//该批原料所要生产的纱线的编号
    @Column
    private String name;//该批原料的名称
    @Column
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date date;//原料采购的日期
    @Column
    private String origin;//原料产出地
    @Column
    private String colour;//原料颜色
    @Column
    private Float moisture;//原料回潮率
    @Column
    private Float fibre_avg_dia;//纤维平均直径（μm）：原料的细度指标。
    @Column
    private Float fibre_diff_cv;//纤维直径变异系数CV：%
    @Column
    private Float avg_len;//平均长度(mm)：原料的平均长度。
    @Column
    private Float single_fiber_strength;//单纤强力（CN）：单根纤维的断裂强力。
    @Column
    private Float breaking_elongation;//断裂伸长（%）：单根纤维的断裂伸长率。
    @Column
    private Float short_wool_under_30mm;//30mm以下短毛率（%）：

    //无参构造函数
    public MaterialQuality() {


    }

    //所有变量的get和set
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBatch_no() {
        return batch_no;
    }

    public void setBatch_no(String batch_no) {
        this.batch_no = batch_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public Float getMoisture() {
        return moisture;
    }

    public void setMoisture(Float moisture) {
        this.moisture = moisture;
    }

    public Float getFibre_avg_dia() {
        return fibre_avg_dia;
    }

    public void setFibre_avg_dia(Float fibre_avg_dia) {
        this.fibre_avg_dia = fibre_avg_dia;
    }

    public Float getFibre_diff_cv() {
        return fibre_diff_cv;
    }

    public void setFibre_diff_cv(Float fibre_diff_cv) {
        this.fibre_diff_cv = fibre_diff_cv;
    }

    public Float getAvg_len() {
        return avg_len;
    }

    public void setAvg_len(Float avg_len) {
        this.avg_len = avg_len;
    }

    public Float getSingle_fiber_strength() {
        return single_fiber_strength;
    }

    public void setSingle_fiber_strength(Float single_fiber_strength) {
        this.single_fiber_strength = single_fiber_strength;
    }

    public Float getBreaking_elongation() {
        return breaking_elongation;
    }

    public void setBreaking_elongation(Float breaking_elongation) {
        this.breaking_elongation = breaking_elongation;
    }

    public Float getShort_wool_under_30mm() {
        return short_wool_under_30mm;
    }

    public void setShort_wool_under_30mm(Float short_wool_under_30mm) {
        this.short_wool_under_30mm = short_wool_under_30mm;
    }
}
